#
# Be sure to run `pod lib lint LCMediator.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'MLXOpenshare'
  s.version          = '1.0.7'
  s.summary          = '三方服务及支付'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = '三方服务及支付”'

  s.homepage         = 'https://gitee.com/89465933/MLXOpenshare.git'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'menglingchao' => '1228225993@qq.com' }
  s.source           = { :git => 'https://gitee.com/89465933/MLXOpenshare.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

   s.ios.deployment_target = '8.0'

    s.requires_arc = true

    s.default_subspec = 'Core'

    s.subspec 'Core' do |core|
        core.source_files = 'MLXOpenshare/Classes/**/*'
        if ENV['isSdk']
           core.dependency 'WechatOpenSDK', "~> 1.7.7"
        end
        core.dependency 'SYFrameWork/AlipaySDK'
        #排除项例子
        #core.exclude_files = 'SDWebImage/UIImage+WebP.{h,m}', 'SDWebImage/SDWebImageWebPCoder.{h,m}'
    end

    s.subspec 'Alipay' do |ali|
        ali.source_files = 'MLXOpenshare/Classes/*.{h,m}','MLXOpenshare/Classes/Alipay/**/*'
        ali.dependency 'SYFrameWork/AlipaySDK'
    end

    s.subspec 'QQ' do |qq|
        qq.source_files = 'MLXOpenshare/Classes/*.{h,m}','MLXOpenshare/Classes/QQ/**/*'
    end

    s.subspec 'Weibo' do |wb|
        wb.source_files = 'MLXOpenshare/Classes/*.{h,m}','MLXOpenshare/Classes/Weibo/**/*'
    end

    s.subspec 'WeChat' do |wx|
        if ENV['isSdk']
         wx.source_files = 'MLXOpenshare/Classes/*.{h,m}','MLXOpenshare/Classes/WeChat/**/*','MLXOpenshare/Classes/WeChatSDK/**/*'
         wx.dependency 'WechatOpenSDK', "~> 1.7.7"
        else
         wx.source_files = 'MLXOpenshare/Classes/*.{h,m}','MLXOpenshare/Classes/WeChat/*.{h,m}'
        end
    end

    s.subspec 'Renren' do |rr|
        rr.source_files = 'MLXOpenshare/Classes/*.{h,m}','MLXOpenshare/Classes/Renren/**/*'
    end

   # s.resource_bundles = {
   #   'MLXMediator' => ['MLXMediator/Resources/*.png']
   # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
   s.frameworks = 'UIKit', 'CoreFoundation', 'QuartzCore'
   # s.static_framework  =  true

  end
